package com.mkh.st.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "数据权限明细查询条件")
public class UserRoleDataDTO implements Serializable {

	@ApiModelProperty(value = "用户id")
	@NotNull(message = "用户id不能为空!")
	private Long userId;

	@ApiModelProperty(value = "角色id")
	@NotNull(message = "角色id不能为空!")
	private Long roleId;

	@ApiModelProperty(value = "数据权限维度id")
	@NotEmpty(message = "数据权限维度id集合不能为空!")
	private List<Long> scopeIds;
}
